<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>北京联合大学</title>
</head>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_835526_3xlzawnaxgi.css">
<link rel="stylesheet" href="../../css/Initialization.css">
<link rel="stylesheet" href="../../css/commen.css">
<link rel="stylesheet" href="../../css/woker.css">
<body>
<div id="content">
    <div class="initer">
            <!-- 具体内容 -->
            <div class="bread">
                <div class="plain" th:text="${menu.menuname}">成立公司</div>
                <div class="plain">
                    <i class="iconfont icon-right"></i>
                </div>
                <div class="plain"><a th:href="@{teacherGroupList(gradeid=${group.gradeid},sid=${smenu.id},mid=${menu.id})}">查看小组作业</a></div>
                <div class="plain">
                    <i class="iconfont icon-right"></i>
                </div>
                <div class="plain current">
                    单元个人作业
                </div>
            </div>
            <div class="woker">
                <div class="workinput">
                    <span class="title gray center">标题</span>
                    <span class="input">
                            <span class="downloadtitle" th:text="${group.groupname}+'的《'+${menu.menuname}+'》作业'">下载作业页面</span>
                        </span>
                </div>
                <div class="workinput downlowinput">
                    <span class="title gray center">附件</span>
                    <span class="downlowtip">
                            <span class="downlowradio" th:each="task:${tasks}">
                                <span class="tipclasstext" th:text="${task.title}">作业附件1.zip</span>
                                <input type="hidden" th:value="${task.attachments}" id="downurl"/>
                                <span class="min-button" th:onclick="'javascript:jump(this)'">下载</span>
                            </span>
                        </span>
                </div>
            </div>
            <div class="wokerbutton mt150">
                <input type="hidden" id="groupid" th:value="${group.id}"/>
                <div class="max-button boxshow" onclick="download(this)">
                    打包下载
                </div>
                <div class="max-button boxshow" onclick="history.back()">
                    返回
                </div>
            </div>
        </div>
</div>
<script src="../../js/jquery-3.4.1.min.js"></script>
<script src="../../js/commen.js"></script>
<script>
    function jump(obj){
        var downurl = $(obj).parent().find("#downurl").val();
        location.href = downurl;
    }

    function download(obj) {
        var groupid = $(obj).parent().find("#groupid").val();
        location.href = "/file/downloadZIP?type=1&id="+groupid;
    }
</script>
</body>
</html>

